/**
 * Created with IntelliJ IDEA.
 * Description:
 */
class Point{
    public double x;
    public double y;
         public Point(double x,double y){
             this.x=x;
             this.y=y;
         }
//         public Point(double r,double a){
//
//         }
}
class PointFactor{
    public static Point setPointByXY(double x,double y){
        Point point =new Point(x,y);
        return point;
    }
    public static Point setPointByRA(double R,double A){
        Point point =new Point(R,A);
        return point;
    }
}
public class Demo3 {
    public static void main(String[] args) {
        Point pointRA =PointFactor.setPointByRA(4,30);
        Point pointXY =PointFactor.setPointByXY(2,1);
    }
}
